﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InfoBusServiceMasterPage.aspx.cs" Inherits="ServBus.InfoBus2010.Layouts.InfoBus2010.InfoBus2010Service" DynamicMasterPageFile="~masterurl/default.master" %>

<asp:Content ContentPlaceHolderID="PlaceHolderPageTitle" runat="server"><asp:Literal runat="server" ID="ltListTitle" /></asp:Content>
<asp:Content ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
	<base target="_self"/>
	<link title="winter" media="all" href="css/calendar-blue.css" type="text/css" rel="stylesheet"/>
	<link media="all" href="css/InfoBus.css" type="text/css" rel="stylesheet"/>
	<script src="js/calendar.js" type="text/javascript"></script>
	<script src="js/calendar-en.js" type="text/javascript"></script>
	<script src="js/calendar-setup.js" type="text/javascript"></script>
	<script src="js/infojet.js" type="text/javascript"></script>
    <script src="js/nicEdit.js" type="text/javascript"></script>
	<script src="js/nicEdit.custom.js" type="text/javascript"></script>
	<script type="text/javascript" src="js/jquery-1.5.min.js"></script>
	<script type="text/javascript" src="js/InfoBus.js"></script>
    <script type="text/javascript" src="/_layouts/entityeditor.debug.js"></script>
    <style type="text/css">
    .s4-notdlg
    {
        display:none;
        }
    </style>
    .s4-ca { margin-left: 0px; } 
</asp:Content>
<asp:Content ContentPlaceHolderID="PlaceHolderLeftNavBar" runat="server"></asp:Content>
<asp:Content ContentPlaceHolderID="PlaceHolderNavSpacer" runat="server"></asp:Content>
<asp:Content ContentPlaceHolderID="PlaceHolderMain" runat="server">
<body onload="InfoJet_Init();resizeForm();">
<%--    <form id="Form1" runat="server" style="padding:0px">--%>
        <SharePoint:FormDigest ID="FormDigest1" runat="server" />
	    <div id='holder'><img src='/_layouts/images/blank.gif' height='40' alt=""/>
        <asp:Button runat="server" ID = "btnSaveDirectTop" OnClick="SaveDirect_Click" style="display:none" />
        </div>
        <%--<div id='toolbarTop' class='toolbar' style="display:none">
            <span id='saveTop' style="display:none">
                <img src='Images/icon_save.gif' border='0' alt=""/>
                <a href='javascript:saveForm()'>
                    <asp:Literal runat="server" ID="ltSaveTop"></asp:Literal>
                </a>
            </span>
            <span id='saveDirectTop' style="display:none">
                <img src='Images/icon_save.gif' border='0' alt="" />
                <!--asp:LinkButton runat="server" ID="lbSaveDirectTop" ClientID="lbSaveDirectTop" OnClientClick="return checkValidate();" OnClick="SaveDirect_Click"></asp:LinkButton-->
                <asp:Button runat="server" ID = "btnSaveDirectTop" ClientID="btnSaveDirectTop" OnClick="SaveDirect_Click" />
            </span>
            <span id='saveAsTop' style="display:none">
                <img src='Images/icon_saveas.gif' border='0' alt=""/>
                <a href='javascript:saveForm()'>
                    <asp:Literal runat="server" ID="ltSaveAsTop"></asp:Literal>
                </a>
            </span>
            <span id='closeTop' style="display:none">
                <img src='Images/icon_close.gif' border='0' alt="" />
                <a href='javascript:closeWin(window)'>
                    <asp:Literal runat="server" ID="ltCloseTop"></asp:Literal>
                </a>
            </span>
        </div>--%>
        <table width='100%'>
            <tr>
                <td>
                    <asp:Label runat="server" ID="lblForm" />
                </td>
            </tr>
        </table>
        <div id='msgDiv'>
            <table width='100%' cellpadding='10' border='0'>
                <tr valign="top">
                    <td><img src='Images/error.gif' /></td>
                    <td><span id='msgSpn'></span></td>
                </tr>
                <tr>
                    <td colspan='2' align="center">
                        <br />
                        [<a href='javascript:closeWin(window)'>Close</a>]
                    </td>
                </tr>
            </table>
        </div>
        <div id='saveDiv'>
            <table width='100%' cellpadding='10' border='0'>
                <tr>
                    <td colspan="2" class='dlgTitle'><asp:Literal runat="server" ID="ltSaveDlg"></asp:Literal></td>
                </tr>
                <tr valign="top">
                    <td width='30' nowrap><asp:Literal runat="server" ID="ltPath"></asp:Literal></td>
                    <td><asp:Label runat="server" ID="lblPath"></asp:Label></td>
                </tr>
                <tr valign="top">
                    <td width='30' nowrap><asp:Literal runat="server" ID="ltName"></asp:Literal></td>
                    <td>
                        <asp:TextBox runat="server" ID="tbName" Width="150"></asp:TextBox>.xml
                        <br />
                        <asp:Label runat="server" ID="lblSaveError" Visible="false" ForeColor="Red"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td colspan="2"><asp:CheckBox runat="server" ID="cbOverwrite" Checked="true" /></td>
                </tr>
                <tr>
                    <td colspan="2"><asp:CheckBox runat="server" ID="cbCloseAfterSave" Checked="true" /></td>
                </tr>
                <tr>
                    <td colspan="2" align="right">
                        <asp:Button runat="server" ID="btnSave" OnClick="btnSave_Click" />
                        <asp:Button runat="server" ID="btnCancel" OnClientClick="closeDlg();return false;" />
                    </td>
                </tr>
            </table>
        </div>
        <%--<div id='toolbarBottom' class='toolbar' style="display:none">
            <span id='saveBottom' style="display:none">
                <img src='Images/icon_save.gif' border='0' />
                <a href='javascript:saveForm()'>
                    <asp:Literal runat="server" ID="ltSaveBottom"></asp:Literal>
                </a>
            </span>
            <span id='saveDirectBottom' style="display:none">
                <img src='Images/icon_save.gif' border='0' />
                <asp:LinkButton runat="server" ID="lbSaveDirectBottom" OnClientClick="return checkValidate();" OnClick="SaveDirect_Click"></asp:LinkButton>
            </span>
            <span id='saveAsBottom' style="display:none">
                <img src='Images/icon_saveas.gif' border='0' />
                <a href='javascript:saveForm()'>
                    <asp:Literal runat="server" ID="ltSaveAsBottom"></asp:Literal>
                </a>
            </span>
            <span id='closeBottom' style="display:none">
                <img src='Images/icon_close.gif' border='0' />
                <a href='javascript:closeWin(window)'>
                    <asp:Literal runat="server" ID="ltCloseBottom"></asp:Literal>
                </a>
            </span>
        </div>--%>
   <%-- </form>--%>
    <asp:Literal runat="server" ID="ltScript"></asp:Literal>
    <script type="text/javascript">
        InfoJet_Init(); resizeForm();
        function getSaveDirectTopID() {
            var id = '<%= btnSaveDirectTop.ClientID %>';
            return (id);
        } 
        initPageLayouts();
        initEmptyImages();
        setBgColor();
    </script>
</body>
</asp:Content>